package com.xuanzheng.company.entity;

import java.sql.Timestamp;

/**
 * AI聊天记录实体类
 */
public class AIChatRecord {
    private String id;
    private String userId;
    private String userName;
    private String modelId;
    private String question;
    private String answer;
    private int status;
    private String errorMessage;
    private int tokensUsed;
    private Timestamp createTime;

    public AIChatRecord() {}

    public AIChatRecord(String id, String userId, String userName, String modelId, 
                       String question, String answer, int status) {
        this.id = id;
        this.userId = userId;
        this.userName = userName;
        this.modelId = modelId;
        this.question = question;
        this.answer = answer;
        this.status = status;
    }

    // Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public int getTokensUsed() {
        return tokensUsed;
    }

    public void setTokensUsed(int tokensUsed) {
        this.tokensUsed = tokensUsed;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "AIChatRecord{" +
                "id='" + id + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", modelId='" + modelId + '\'' +
                ", question='" + question + '\'' +
                ", status=" + status +
                ", tokensUsed=" + tokensUsed +
                '}';
    }
}